package com.jpz.bean;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author jpz
 * @since 2018-11-08
 */
@TableName("t_student")
public class Student implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    private String no;
    private String name;
    private String sex;
    private String birthday;
    private String cardno;
    private String school;
    private String education;
    private Integer gid;
    private Integer flag;
    private String email;
    private String qq;
    private String phone;
    private String createdate;
    private String photo;
    private Integer del;
    
    @TableField(exist=false)
    private Grade grade;
    
    
    public Student(Integer id, String no, String name, String sex, String birthday, String cardno, String school,
			String education, Integer gid, Integer flag, String email, String qq, String phone, String createdate,
			String photo, Integer del, Grade grade) {
		super();
		this.id = id;
		this.no = no;
		this.name = name;
		this.sex = sex;
		this.birthday = birthday;
		this.cardno = cardno;
		this.school = school;
		this.education = education;
		this.gid = gid;
		this.flag = flag;
		this.email = email;
		this.qq = qq;
		this.phone = phone;
		this.createdate = createdate;
		this.photo = photo;
		this.del = del;
		this.grade = grade;
	}


	public Student() {
		super();
	}
    

	public Student(String name, Integer gid) {
		super();
		this.name = name;
		this.gid = gid;
	}


	public Student(Integer id, String no, String name, String sex, String birthday, String cardno, String school,
			String education, Integer gid, Integer flag, String email, String qq, String phone, String createdate,
			String photo, Integer del) {
		super();
		this.id = id;
		this.no = no;
		this.name = name;
		this.sex = sex;
		this.birthday = birthday;
		this.cardno = cardno;
		this.school = school;
		this.education = education;
		this.gid = gid;
		this.flag = flag;
		this.email = email;
		this.qq = qq;
		this.phone = phone;
		this.createdate = createdate;
		this.photo = photo;
		this.del = del;
	}
	

	public Grade getGrade() {
		return grade;
	}


	public void setGrade(Grade grade) {
		this.grade = grade;
	}


	public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getNo() {
        return no;
    }

    public void setNo(String no) {
        this.no = no;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getBirthday() {
        return birthday;
    }

    public void setBirthday(String birthday) {
        this.birthday = birthday;
    }

    public String getCardno() {
        return cardno;
    }

    public void setCardno(String cardno) {
        this.cardno = cardno;
    }

    public String getSchool() {
        return school;
    }

    public void setSchool(String school) {
        this.school = school;
    }

    public String getEducation() {
        return education;
    }

    public void setEducation(String education) {
        this.education = education;
    }

    public Integer getGid() {
        return gid;
    }

    public void setGid(Integer gid) {
        this.gid = gid;
    }

    public Integer getFlag() {
        return flag;
    }

    public void setFlag(Integer flag) {
        this.flag = flag;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getQq() {
        return qq;
    }

    public void setQq(String qq) {
        this.qq = qq;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getCreatedate() {
        return createdate;
    }

    public void setCreatedate(String createdate) {
        this.createdate = createdate;
    }

    public String getPhoto() {
        return photo;
    }

    public void setPhoto(String photo) {
        this.photo = photo;
    }

    public Integer getDel() {
        return del;
    }

    public void setDel(Integer del) {
        this.del = del;
    }

    @Override
    public String toString() {
        return "Student{" +
        ", id=" + id +
        ", no=" + no +
        ", name=" + name +
        ", sex=" + sex +
        ", birthday=" + birthday +
        ", cardno=" + cardno +
        ", school=" + school +
        ", education=" + education +
        ", gid=" + gid +
        ", flag=" + flag +
        ", email=" + email +
        ", qq=" + qq +
        ", phone=" + phone +
        ", createdate=" + createdate +
        ", photo=" + photo +
        ", del=" + del +
        "}";
    }
}
